<T:ViewBase x:Class="WPFExcelReport.TSTDLZ02"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    Background="White"  
                    Loaded="Window_Loaded"
     >
    <T:ViewBase.Resources>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:TIMES100  x:Key="X100"/>
        <ucd:TIMES10  x:Key="X10"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PreisConverter  x:Key="PreisConverter"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>  
    </T:ViewBase.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0">
        <WrapPanel>
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=SDZMANDANT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwSTDLZ.SDZMANDANT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=SDZSTUFE:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwSTDLZ.SDZSTUFE}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=SDZSAKSTKRS:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwSTDLZ.SDZSAKSTKRS}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=SDZSAKST:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwSTDLZ.SDZSAKST}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=SDZMONAT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwSTDLZ.SDZMONAT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=SDZPROGRP:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwSTDLZ.SDZPROGRP}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=SDZARTGRP:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwSTDLZ.SDZARTGRP}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=SDZGANZPRT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwSTDLZ.SDZGANZPRT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=SDZGBRBSTD:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwSTDLZ.SDZGBRBSTD}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=SDZGDLAUFZ:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwSTDLZ.SDZGDLAUFZ}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=SDZIANZAUF1:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwSTDLZ.SDZIANZAUF1}" Width="Auto" />
            </Grid> 
        </WrapPanel>
        <WrapPanel Visibility="{Binding IsSTDLZ,Converter={StaticResource ResourceKey=bv}}">
                <ex:TBASE1></ex:TBASE1>
            </WrapPanel>
        </StackPanel>
        <DataGrid  Grid.Row="1"  VerticalAlignment="Top"  
                                   AutoGenerateColumns="False"
                                   EnableRowVirtualization="False"
                                   VerticalScrollBarVisibility="Auto"
                                   HorizontalScrollBarVisibility="Auto"
                                   HeadersVisibility="Column"     
                                   ItemsSource="{Binding vwSTDLZ}"  
                                    IsSynchronizedWithCurrentItem="True"
                                   SelectedItem="{Binding Path=dwSTDLZ, Mode=TwoWay}"
                                   x:Name="dlgVKP"  
                                   RowDetailsVisibilityMode="Visible" Grid.ColumnSpan="2" Margin="0,0.2,0.2,0"
                    >
            <DataGrid.Columns> 
                <DataGridTextColumn x:Name="SDZMANDANT"
                                    Binding="{Binding Path=SDZMANDANT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SDZMANDANT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SDZSTUFE"
                                    Binding="{Binding Path=SDZSTUFE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SDZSTUFE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SDZSAKSTKRS"
                                    Binding="{Binding Path=SDZSAKSTKRS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SDZSAKSTKRS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SDZSAKST"
                                    Binding="{Binding Path=SDZSAKST, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SDZSAKST}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SDZMONAT"
                                    Binding="{Binding Path=SDZMONAT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SDZMONAT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SDZPROGRP"
                                    Binding="{Binding Path=SDZPROGRP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SDZPROGRP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SDZARTGRP"
                                    Binding="{Binding Path=SDZARTGRP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SDZARTGRP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SDZGANZPRT"
                                    Binding="{Binding Path=SDZGANZPRT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SDZGANZPRT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SDZGBRBSTD"
                                    Binding="{Binding Path=SDZGBRBSTD, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SDZGBRBSTD}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SDZGDLAUFZ"
                                    Binding="{Binding Path=SDZGDLAUFZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SDZGDLAUFZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SDZIANZAUF1"
                                    Binding="{Binding Path=SDZIANZAUF1, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SDZIANZAUF1}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SDZIANZAUF2"
                                    Binding="{Binding Path=SDZIANZAUF2, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SDZIANZAUF2}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SDZIANZAUF3"
                                    Binding="{Binding Path=SDZIANZAUF3, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SDZIANZAUF3}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SDZIANZAUF4"
                                    Binding="{Binding Path=SDZIANZAUF4, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SDZIANZAUF4}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SDZIANZAUF5"
                                    Binding="{Binding Path=SDZIANZAUF5, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SDZIANZAUF5}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SDZIANZAUF6"
                                    Binding="{Binding Path=SDZIANZAUF6, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SDZIANZAUF6}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SDZDANZAUF1"
                                    Binding="{Binding Path=SDZDANZAUF1, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SDZDANZAUF1}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SDZDANZAUF2"
                                    Binding="{Binding Path=SDZDANZAUF2, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SDZDANZAUF2}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SDZDANZAUF3"
                                    Binding="{Binding Path=SDZDANZAUF3, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SDZDANZAUF3}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SDZDANZAUF4"
                                    Binding="{Binding Path=SDZDANZAUF4, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SDZDANZAUF4}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SDZDANZAUF5"
                                    Binding="{Binding Path=SDZDANZAUF5, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SDZDANZAUF5}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SDZDANZAUF6"
                                    Binding="{Binding Path=SDZDANZAUF6, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SDZDANZAUF6}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SDZVANZAUF1"
                                    Binding="{Binding Path=SDZVANZAUF1, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SDZVANZAUF1}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SDZVANZAUF2"
                                    Binding="{Binding Path=SDZVANZAUF2, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SDZVANZAUF2}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SDZVANZAUF3"
                                    Binding="{Binding Path=SDZVANZAUF3, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SDZVANZAUF3}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SDZVANZAUF4"
                                    Binding="{Binding Path=SDZVANZAUF4, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SDZVANZAUF4}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SDZVANZAUF5"
                                    Binding="{Binding Path=SDZVANZAUF5, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SDZVANZAUF5}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SDZVANZAUF6"
                                    Binding="{Binding Path=SDZVANZAUF6, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SDZVANZAUF6}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SDZBANZAUF1"
                                    Binding="{Binding Path=SDZBANZAUF1, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SDZBANZAUF1}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SDZBANZAUF2"
                                    Binding="{Binding Path=SDZBANZAUF2, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SDZBANZAUF2}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SDZBANZAUF3"
                                    Binding="{Binding Path=SDZBANZAUF3, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SDZBANZAUF3}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SDZBANZAUF4"
                                    Binding="{Binding Path=SDZBANZAUF4, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SDZBANZAUF4}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SDZBANZAUF5"
                                    Binding="{Binding Path=SDZBANZAUF5, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SDZBANZAUF5}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SDZBANZAUF6"
                                    Binding="{Binding Path=SDZBANZAUF6, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SDZBANZAUF6}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SDZFILLER"
                                    Binding="{Binding Path=SDZFILLER, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SDZFILLER}}"
                                    Width="Auto" />
            </DataGrid.Columns>
        </DataGrid  >
    </Grid>
</T:ViewBase> 
 
